const KoaRouter = require('@koa/router')
const { verifyAuth } = require('../middleware/loginMiddleware.js')
const { create, reply } = require('../controller/commentControll.js')
const commentRouter = new KoaRouter({prefix:'/comment'})

// 增： 新增评论  先验证登陆
commentRouter.post('/' , verifyAuth  , create)

// 增： 回复评论
commentRouter.post('/reply' , verifyAuth  , reply)

module.exports = commentRouter